Interface LoginHandler


public interface LoginHandler
This interface provides methods to ping, authenticate and logout session with the Server.
  • Method Details

    • login

      void login(PSConnection pPSConnection) throws PSCPException
      This method sends request to authenticate a session. It should throw an exception in case of any error. No error will be thrown if the authentication is successful.
      Parameters:
      pPSConnection - The PSConnection instance used to send the request to Policy Server.
      Throws:
      PSCPException - The PSCPException instance in case of error while login.
    • logout

      void logout(PSConnection pPSConnection) throws PSCPException
      This function logs the user out. This is used while terminating connections.
      Parameters:
      pPSConnection - The PSConnection instance used to send the request to Policy Server.
      Throws:
      PSCPException - The PSCPException instance in case of error while logout.
    • ping

      HttpResponseInfo ping(PSConnection pPSConnection) throws PSCPException
      This function checks whether server is up or not and returns response header.
      Parameters:
      pPSConnection - The PSConnection object.
      Returns:
      The HttpResponseInfo instance in case of success.
      Throws:
      PSCPException - The PSCPException instance in case of error while ping.
    • getEnterpriseApplicationID

      String getEnterpriseApplicationID()
      This method returns the Enterprise Application ID.
      Returns:
    • getSessionKey

      void getSessionKey(PSConnection pPSConnection) throws com.seclore.fs.helper.exception.FSHelperException
      This methods sends get session key request
      Parameters:
      pPSConnection -
      Throws:
      com.seclore.fs.helper.exception.FSHelperException